import com.troyworks.framework.ui.FontManager;
/**
 * Automatically styles a textfield (useful for when inside buttons and components).
 * @author Troy Gardner
 */
class com.troyworks.framework.ui.AutoLabel extends MovieClip{
	public var label_txt:TextField;
	public var isLoaded : Boolean;
	public var isReady : Boolean;
	public function AutoLabel() {
		super();
	}
	public function onLoad():Void{
		if(_parent.label != null){
			label_txt.htmlText = _parent.label;
			FontManager.getInstance().styleMe(_parent, label_txt);
		}else{
			FontManager.getInstance().styleMe(_parent, label_txt);
		}
		isLoaded = true;
		isReady = true;
	}
}